package com.taotao.common.enums;

public enum OperateType {
	operateType_1("1","发布商品成功"),
	operateType_2("2","修改商品成功"),
	operateType_3("3","登录成功"),
	operateType_4("4","打开商品成功"),
	operateType_5("5","关闭商品成功"),
	operateType_6("6","置顶商品成功"),
	operateType_7("7","删除商品成功"),
	operateType_8("8","发布服务成功"),
	operateType_9("9","修改服务成功"),
	operateType_10("10","删除服务成功"),
	operateType_11("11","创建会话"),
	operateType_12("12","删除会话"),
	operateType_13("13","发送模板消息成功"),
	operateType_14("14","发送订阅消息成功"),
	operateType_15("15","收藏商品成功"),
	operateType_16("16","取消收藏商品成功"),
	operateType_17("17","修改service状态成功"),
	operateType_18("18","发布商品完成设置状态为打开"),
	operateType_19("19","获取公众用户信息静默授权"),
	operateType_20("20","上线"),
	operateType_21("21","离线"),
	operateType_22("22","修改会员信息"),
	operateType_23("23","打开分享"),
	operateType_24("24","分享好友成功"),
	operateType_25("25","浏览商品"),
	operateType_26("26","getAuthInfo"),
	operateType_27("27","清除登录缓存"),
	operateType_28("28","上线，收到离线缓存消息提醒"),
	operateType_29("29","关注公众号"),
	operateType_30("30","取消关注公众号"),
	operateType_31("31","添加地址成功"),
	operateType_32("32","修改地址成功"),
	operateType_33("33","删除地址成功"),
	operateType_34("34","添加订单成功"),
	operateType_35("35","修改订单成功"),
	operateType_36("36","删除订单成功"),
	operateType_37("37","修改订单状态成功"),
	operateType_38("38","修改优惠券状态成功"),
	operateType_39("39","发送公众号模板消息失败"),
	operateType_40("40","充值"),
	operateType_41("41","消费"),
	operateType_42("42","支付日志"),
	operateType_43("43","商户付款到卖家零钱日志"),
	operateType_44("44","系统删除"),
	operateType_45("45","添加转账记录");
	
	private String code;
	private String desc;
	
	public String getCode() {
		return code;
	}
 
	public void setCode(String code) {
		this.code = code;
	}
 
	public String getDesc() {
		return desc;
	}
 
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	OperateType(String code,String desc){ 
		this.code=code;
		this.desc=desc;
	}
	
	public static String getValue(String code){
		for (OperateType type : values()) {
			if(type.getCode().equals(code)){
				return type.getDesc();
			}
		}
		return null;
	}
}
